package com.inspur.edp.common.type;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lizhaorui
 * @description TODO
 * @date 2025/1/13 14:44
 */

public class Document {

    private final static String NAME = "name";

    private final static String DESCRIPTION = "description";

    private final static String EXAMPLE = "example";

    private Map<String, String> optionMap;

    public Document(Map<String, String> optionMap) {
        this.optionMap = optionMap;
    }

    public Document() {
        this.optionMap = new HashMap<>();
    }

    public String getName() {
        return optionMap.get(NAME);
    }

    public String setName(String name) {
        return optionMap.put(NAME, name);
    }

    public String getDescription() {
        return optionMap.get(DESCRIPTION);
    }

    public String setDescription(String description) {
        return optionMap.put(DESCRIPTION, description);
    }

    public String getExample() {
        return optionMap.get(EXAMPLE);
    }

    public String setExample(String example) {
        return optionMap.put(EXAMPLE, example);
    }

    public void setOptionMap(Map<String, String> optionMap) {
        this.optionMap = optionMap;
    }

}
